﻿@model IEnumerable<Project.Models.Rows>

@{
    ViewBag.Title = "Sorok";
}

<h2>Sorok</h2>

<p>
    @Html.ActionLink("Új sor", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.RowName)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.RowName)
        </td>
        <td>
            @Html.ActionLink("Szerkesztés", "Edit", new { id=item.Row_Id }) |
            @Html.ActionLink("Részletek", "Details", new { id=item.Row_Id }) |
            @Html.ActionLink("Törlés", "Delete", new { id=item.Row_Id })
        </td>
    </tr>
}

</table>
